/// id : 15
/// city : "CM"
/// title : "「The Preference 彩析」問與答"
/// description : "本文精選十條有關The Preference 彩析的常見問題。"
/// status : "1"
/// read_count : 515
/// comment_count : 0
/// up_count : 0
/// create_time : "2020-06-19 00:00"
/// update_time : "2020-06-19 19:19"
/// delete_time : 0
/// is_position : "1"
/// image_url : "https://api.in-monkeys.com/upload_admin/image/20200223/fb2b3a2f0aaa6e7b1b5bb2ec186c6172.jpg"
/// listorder : 10

class HomeArticleModel {
  int _id;
  String _city;
  String _title;
  String _description;
  String _status;
  int _read_count;
  int _comment_count;
  int _up_count;
  String _create_time;
  String _update_time;
  int _delete_time;
  String _is_position;
  String _image_url;
  int _listorder;

  int get id => _id;
  String get city => _city;
  String get title => _title;
  String get description => _description;
  String get status => _status;
  int get read_count => _read_count;
  int get comment_count => _comment_count;
  int get up_count => _up_count;
  String get create_time => _create_time;
  String get update_time => _update_time;
  int get delete_time => _delete_time;
  String get is_position => _is_position;
  String get image_url => _image_url;
  int get listorder => _listorder;

  HomeArticleModel({
      int id, 
      String city, 
      String title, 
      String description, 
      String status, 
      int read_count, 
      int comment_count, 
      int up_count, 
      String create_time, 
      String update_time, 
      int delete_time, 
      String is_position, 
      String image_url, 
      int listorder}){
    _id = id;
    _city = city;
    _title = title;
    _description = description;
    _status = status;
    _read_count = read_count;
    _comment_count = comment_count;
    _up_count = up_count;
    _create_time = create_time;
    _update_time = update_time;
    _delete_time = delete_time;
    _is_position = is_position;
    _image_url = image_url;
    _listorder = listorder;
}

  HomeArticleModel.fromJson(dynamic json) {
    _id = json["id"];
    _city = json["city"];
    _title = json["title"];
    _description = json["description"];
    _status = json["status"];
    _read_count = json["read_count"];
    _comment_count = json["comment_count"];
    _up_count = json["up_count"];
    _create_time = json["create_time"];
    _update_time = json["update_time"];
    _delete_time = json["delete_time"];
    _is_position = json["is_position"];
    _image_url = json["image_url"];
    _listorder = json["listorder"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["city"] = _city;
    map["title"] = _title;
    map["description"] = _description;
    map["status"] = _status;
    map["read_count"] = _read_count;
    map["comment_count"] = _comment_count;
    map["up_count"] = _up_count;
    map["create_time"] = _create_time;
    map["update_time"] = _update_time;
    map["delete_time"] = _delete_time;
    map["is_position"] = _is_position;
    map["image_url"] = _image_url;
    map["listorder"] = _listorder;
    return map;
  }

}